function get_c1_data() {
    $.ajax({
        url: "/c1",
        success: function(data) {
            $(".num h1").eq(1).text(data.RFCallCnt);
            $(".num h1").eq(2).text(data.RFAnsCalls);
            $(".num h1").eq(3).text(data.CallsAbandoned);
        },
        error: function(xhr, type, errorThrown) {

        }
    })
}

function get_c2_data() {
    $.ajax({
        url: "/c2",
        success: function(data) {

        },
        error: function(xhr, type, errorThrown) {

        }
    })
}

function get_l1_data() {
    $.ajax({
        url: "/l1",
        success: function(data) {

        },
        error: function(xhr, type, errorThrown) {

        }
    })
}

function get_l2_data() {
    $.ajax({
        url: "/l2",
        success: function(data) {

        },
        error: function(xhr, type, errorThrown) {

        }
    })
}

function get_r1_data() {
    $.ajax({
        url: "/r1",
        success: function(data) {

        }
    })
}

function get_r2_data() {
    $.ajax({
        url: "/r2",
        success: function(data) {

        }
    })
}


get_c1_data()
get_c2_data()
get_l1_data()
get_l2_data()
get_r1_data()
get_r2_data()


setInterval(get_c1_data, 1000 * 10)
setInterval(get_c2_data, 10000 * 10)
setInterval(get_l1_data, 10000 * 10)
setInterval(get_l2_data, 10000 * 10)
setInterval(get_r1_data, 10000 * 10)
setInterval(get_r2_data, 10000 * 10)